package com.yuw.hw20190410.test02;

public class Car extends Vehicle {
// 属性
	private int loaders;

	public Car(String vehicleName, double vehicleSpeed, int loaders) {
		// 通过super调用父类的构造方法，初始化父类的私有属性
		super(vehicleName, vehicleSpeed);
		this.loaders = loaders;
	}

	@Override
	public void move() {
		System.out.println("这是一辆Car在行驶：");
		super.move();
	}

	public int getLoaders() {
		return loaders;
	}

	public void setLoaders(int loaders) {
		this.loaders = loaders;
	}

}
